package sliceType

type Number interface {
	int | float64 | string
}

func DeleteSlice[T Number](arr []T, deleteIndex any) []T {
	var Index []T
	for _, v := range arr {
		if v != deleteIndex {
			Index = append(Index, v)
		}
	}
	return Index
}
